/** ================================
 * 模块：${bean.notesMain} ---- ${bean.notesSub}-明细  T${bean.numMain}${bean.numSub}
 * ================================
 * 一、更新说明：
 * V1.0.0(20190319) Yangsheng 初版。
 */
define( [
        'components/baseModel/SubBaseModel'
        ],
    function(SubBaseModel) {
    /**
     * 定义模块数据模型
     */
    var _Model = SubBaseModel.extend({
         /**
         * 初始化界面显示
         */
         initDispalyParam:function(){

             //地图类型
            <#if (detail.systemCodeList)?size!=0>
            <#list (detail.systemCodeList) as codeOption>

                var options_${codeOption.codeId} = Util.getCode("${codeOption.codeType}");//${codeOption.codeId}
                </#list>
            </#if>
            //主列表
            this.gridColumns=[
                <#list 0..(detail.tableList)?size-1! as i>
                    <#if (detail.tableList[i])?contains("")>
                        {id: "${detail.tableList[i]}",label:this.mlh.getDescr("${detail.subFuctionId}", "${detail.tableList[i]}") }, //
                    <#elseif (detail.tableList[i])?contains("")>
                        {id: "${detail.tableList[i]}",label:this.mlh.getDescr("${detail.subFuctionId}", "${detail.tableList[i]}") },//
                    <#else>
                        {id: "${detail.tableList[i]}",label:this.mlh.getDescr("${detail.subFuctionId}", "${detail.tableList[i]}") },//
                    </#if>
                </#list>
                { id: "activeStr",    label:this.mlh.getDescr("${detail.subFuctionId}", "activeFlag")     },
                { id: "udf01",    label:this.mlh.getDescr("${detail.subFuctionId}", "udf01")     },
                { id: "udf02",    label:this.mlh.getDescr("${detail.subFuctionId}", "udf02")     },
                { id: "udf03",    label:this.mlh.getDescr("${detail.subFuctionId}", "udf03")     },
                { id: "udf04",    label:this.mlh.getDescr("${detail.subFuctionId}", "udf04")     },
                { id: "udf05",    label:this.mlh.getDescr("${detail.subFuctionId}", "udf05")     }
              			  ];
            this.formItems= [{ type: "settings",position: "label-left",inputWidth: "col-sm-25"},
    			             //主信息
			    			 { type: "block",id: _this.namespace + "headerMainForm_details",label: this.mlh.getText("mainInfo"),readonly: true, active: true, list:
			    			  [	<#if (detail.tableList)??>
<#list 0..(detail.tableList)?size-1! as i>
                           { type: "input",label: this.mlh.getDescr("${detail.subFuctionId}", "${(detail.tableList)[i]}"),	name: "${(detail.tableList)[i]}",value: ""},//	<#if (detail.tableListDesc)??>${detail.tableListDesc[i]}</#if>
</#list></#if>
                              ]
			    			},
			    			//自定义
			    			{ type: "block", id: _this.namespace + "headerUdfForm_details", label: this.mlh.getText("udfInfo"),list:
			                   [
                                   { type: "input", label:this.mlh.getDescr("${detail.subFuctionId}", "udf01"),	 name: "udf01", value: "" },//自定义01
                                   { type: "input", label: this.mlh.getDescr("${detail.subFuctionId}", "udf02"),	 name: "udf02", value: "" },//自定义02
                                   { type: "input", label: this.mlh.getDescr("${detail.subFuctionId}", "udf03"),	 name: "udf03", value: "" },//自定义03
                                   { type: "input", label: this.mlh.getDescr("${detail.subFuctionId}", "udf04"),	 name: "udf04", value: "" },//自定义04
                                   { type: "input", label:this.mlh.getDescr("${detail.subFuctionId}", "udf05"),	 name: "udf05", value: "" },//自定义05
                                   { type: "input", label:this.mlh.getDescr("${detail.subFuctionId}", "noteText"), name : "noteText",value : "",rows : "3",inputWidth : "col-sm-100"}
                               ]
			                },
		    			    //其他信息
		    			    { type: "block", id: _this.namespace + "headerOtherForm_details", label: this.mlh.getText("other"), list:
		    			    	[
                                    { type: "input", label: this.mlh.getDescr("${detail.subFuctionId}", "addWho"),   name: "addWho",   value: "",readonly: true},//新增人员
                                    { type: "input", label: this.mlh.getDescr("${detail.subFuctionId}", "addTime"),  name: "addTime",  value: "",readonly: true},//新增时间
                                    { type: "input", label:this.mlh.getDescr("${detail.subFuctionId}", "editWho"),  name: "editWho",  value: "",readonly: true},//编辑人员
                                    { type: "input", label:this.mlh.getDescr("${detail.subFuctionId}", "editTime"), name: "editTime", value: "",readonly: true},//编辑时间
                                    { type: "input", label:this.mlh.getDescr("${detail.subFuctionId}", "currentVersion"), name: "currentVersion", value: "",readonly: true},//编辑时间
                                    { type: "hidden",label:this.mlh.getDescr("${detail.subFuctionId}", "oprSeqFlag"),name: "oprSeqFlag", value: "" ,readonly: true}//操作流水号
                                ]
		    			    }
			 ];

			this.format = [
				{field:"longitude",formatType:"number",format:"000000.00000000"} , //保留8位小数
				{field:"latitude",formatType:"number",format:"000000.00000000"}  //保留8位小数

			];
        }
    });
    return _Model;
});